﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlows;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.WorkFlows.EntityMapper.WorkFlows
{

    /// <summary>
    /// 流程表-名称信息的数据配置文件
    /// </summary>
    public class WorkFlowCfg : EntityTypeConfiguration<WorkFlow>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public WorkFlowCfg()
        {
            ToTable("WorkFlow", AbpZeroTemplateConsts.SchemaName.Basic);


            // 流程名称
            Property(a => a.FlowName).HasMaxLength(200);
            // 流程描述
            Property(a => a.FlowDesc).HasMaxLength(500);
        }
    }
}